package org.ace.view
{
	import flash.display.Sprite;
	
	import org.ace.loading;
	
	public class Loading extends Sprite
	{
		private var loadin:loading=new loading();
		private static var l:Loading;
		public function Loading()
		{
			super();
			loadin.x=960/2-loadin.width/2;
			loadin.y=560/2-loadin.height/2;
		}
		public static function getInstance():Loading{
			if(l==null){
				l=new Loading();
			}
			return l;
		}
		public function addLoading():void{
			addChild(loadin);
		}
		public function removeLoading():void{
			removeChild(loadin);
		}
		public function setBody(str:String):void{
			loadin.neirong.text=str;
		}
		public function setIng(str:String):void{
			loadin.jindu.text=str;
		}
	}
}